import Vue from 'vue'

import axios from 'axios'

export default new Vue({
    data () {
        return{
            data:[]
        }
    },
    created() {
        axios({
            method:"get",
            url:'https://www.escook.cn/api/cart'
        }).then((res) => {
            console.log(res);
            this.data = res.data.list
        })  
    }
})